home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / wnos / wn941101 / bm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-10  |  1.7 KB  |  70 lines

  1. #ifndef _BM_H
  2. #define _BM_H
  3.  
  4. /* bm.h -- definitons for bm.c that aren't included elsewhere */
  5.  
  6. #ifndef _SMTP_H
  7. #include "smtp.h"
  8. #endif
  9.  
  10. /* Header types */
  11. #define    NOHEADER         -1
  12. #define APPROVED        0
  13. #define    FROM            1
  14. #define    TO                2
  15. #define    DATE            3
  16. #define    MSGID            4
  17. #define    SUBJECT            5
  18. #define    RECEIVED        6
  19. #define    SENDER            7
  20. #define    REPLYTO            8
  21. #define STATUS            9
  22. #define BBSTYPE            10
  23. #define XFORWARD        11
  24. #define CC                12
  25. #define RRECEIPT        13
  26. #define APPARTO            14
  27. #define ERRORSTO        15
  28. #define ORGANIZATION    17
  29. #define    UNKNOWN            18
  30.  
  31. /* number of columns and lines on a standard display, e.g. vt100 */
  32. #define    MAXCOL            80
  33. #define MAXLIN            24
  34.  
  35. /* message status */
  36. #define    BM_DELETE        1
  37. #define    BM_READ            2
  38. #define    BM_FORWARDED    4
  39.  
  40. #define BM_NLET            200        /* default size of letter array */
  41.  
  42. #define SLINELEN        64
  43. #define LINELEN            256
  44.  
  45. /* a mailbox list entry */
  46. struct let {
  47.     long    start;
  48.     long    size;
  49.     int    status;
  50. };
  51.  
  52. extern unsigned Maxlet;        /* max messages */
  53. extern char *fgets();
  54. extern char *Hdrs[];
  55.  
  56. void scanmail __ARGS((struct mbx *m));
  57. int msgtofile __ARGS((struct mbx *m,int msg,FILE *tfile,int noheader));
  58. int dolistnotes __ARGS((int argc,char *argv[],void *p));
  59. int isarea __ARGS((char *name));
  60. int dodelmsg __ARGS((int argc,char *argv[],void *p));
  61. int doreadmsg __ARGS((int argc,char *argv[],void *p));
  62. int doreadnext __ARGS((int argc,char *argv[],void *p));
  63. int mbx_reply __ARGS((int argc,char *argv[],struct mbx *m,struct list **cclist,char **rhdr));
  64. int closenotes __ARGS((struct mbx *m));
  65. long isnewprivmail __ARGS((struct mbx *m));
  66. int htype __ARGS((char *s));
  67. char *getaddress __ARGS((char *string,int cont));
  68.  
  69. #endif  /* _BM_H */
  70.